import './wdyr.ts'
import './App.css';
import Login from "./pages/login";
import {useAuth} from "./context/auth-context.tsx";
import RouterPage from "./pages/RouterPage.tsx";

const App = () => {
    const {token} = useAuth()
    return token ? <RouterPage/> : <Login/>
}

export default App
